rem script for setting up common variables in Windows.
rem call this script in AUTOEXEC.bat and set the environment
rem up every time system boots.

@echo off
setlocal EnableDelayedExpansion

rem programs that are not installed under %PROGRAMFILES% are thought 
rem to be placed under %BASE_DIR%
set BASE_DIR=E:\INSTL
set WD=E:\ECLPSWS

rem environment for python 2.6
set PY26_HOME=C:\Python26
set PATH=!PATH!;%PY26_HOME%
set PATHEXT=!PATHEXT!;.PY

rem environment for java
rem plz take care of the edition number in the path string
set JAVA_HOME=%PROGRAMFILES%\Java\jdk1.6.0_18
set JAVA_BIN=%JAVA_HOME%\bin
set CLASSPATH=.\;%JAVA_HOME%\lib\tools.jar
set PATH=!PATH!;%JAVA_BIN%

rem environment for ant
set ANT_HOME=%BASE_DIR%\apache-ant-1.8.1
set ANT_BIN=%ANT_HOME%\bin;%ANT_HOME%\lib
set PATH=!PATH!;%ANT_BIN%

rem environment for android sdk
set ANDROID_SDK_TOOLS=%BASE_DIR%\android-sdk-windows\tools
set PATH=!PATH!;%ANDROID_SDK_TOOLS%

rem environment for using Microsoft Visual Studio 2008 x86 tool
if exist "%PROGRAMFILES%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" (
    call "%PROGRAMFILES%\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 1>nul 2>nul
)

cd /d %WD%
::%ComSpec%
